package lamma.lab.job.test;

/**
 * @author maxcellent
 *
 */
// TODO
public class ParamDoesNotExistException extends RuntimeException {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private Class<?> contextClass;
	
	private String field;
	
	private String missingParam;
	
	public ParamDoesNotExistException(Class<?> contextClass, String field, String missingParam) {
		super();
		this.contextClass = contextClass;
		this.field = field;
		this.missingParam = missingParam;
	}

	@Override
	public String getMessage() {
		return "Can not found param [" + missingParam + "] for field [" + field + "] in class : " + contextClass;
	}
}
